package serviceImpl

import (
	"GoLearn2024/day03/06_grpc/pb"
	"context"
	"fmt"
)

type MessageSenderServerImpl struct {
	*pb.UnimplementedMessageSenderServer
}

func (m MessageSenderServerImpl) Send(ctx context.Context, re *pb.MessageRequest) (*pb.MessageResponse, error) {
	//TODO implement me
	fmt.Println("receive message", re.SaySomething)
	resp := &pb.MessageResponse{
		ResponseSomething: "this is the grpc server, repeat it.",
	}
	return resp, nil
}
